package org.yunshang.beltbody.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.yunshang.beltbody.domain.TBeltBody;
import org.yunshang.beltbody.domain.vo.TBeltBodyVo;
import org.yunshang.common.mybatis.annotation.DataColumn;
import org.yunshang.common.mybatis.annotation.DataPermission;
import org.yunshang.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 带身信息-Mapper接口
 *
 * @author Lion Li
 * @date 2024-03-30
 */
public interface TBeltBodyMapper extends BaseMapperPlus<TBeltBody, TBeltBodyVo> {

    @DataPermission({
        @DataColumn(key = "typeName", value = "t.type"),
        @DataColumn(key = "mianpiName", value = "t.mianpi"),
        @DataColumn(key = "mpColorName", value = "t.mp_color"),
        @DataColumn(key = "dipiName", value = "t.dipi"),
        @DataColumn(key = "dpColorName", value = "t.dp_color"),
    })
    List<TBeltBodyVo> selectBeltBodyList(@Param(Constants.WRAPPER) Wrapper<TBeltBody> lqw);
}
